package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.entity.EmployeeLoanContent;

public class ManagelReimburseActivity extends TableHeaderPagerActivity {
  protected static final String EXTRA_TYPE = "com.isunland.managesystem.ui.EXTRA_TYPE";
  protected static final String EXTRA_ADDCONTENTTYPE =
      "com.isunland.managesystem.ui.EXTRA_ADDCONTENTTYPE";
  //	private int[] titles={R.string.manageReimburse,R.string.manageReimburseList};
  private int[] titles = { R.string.reimburseDetail, R.string.reimburseList };
  private EmployeeLoanContent mContent;

  //管理费用报销申请界面
  @Override protected Fragment createFragmentOne() {
    mContent = (EmployeeLoanContent) getIntent().getSerializableExtra(
        ManagelReimburseDetailFragment.EXTRA_MANAGEREIMBURSE_CONTENT);
    return ManagelReimburseDetailFragment.newInstance(mContent);
  }

  //管理费用报销明细界面list
  @Override protected Fragment createFragmentTwo() {
    mContent = (EmployeeLoanContent) getIntent().getSerializableExtra(
        ManagelReimburseDetailFragment.EXTRA_MANAGEREIMBURSE_CONTENT);
    return ManageReimburseListFragment.newInstance(mContent);
  }

  @Override protected int[] createTitle() {

    return titles;
  }

  @Override public int getHeaderPosition() {
    return 1;
  }
}
